package com.tricode.ile.training.task.one.reversedarray;

import java.util.ArrayList;

public class GenerateReversedArray {

	/**
	 * 
	 * @param you enter the list that needs to be reversed
	 * @return the reversed list
	 */
	public ArrayList<String> reverseArray(ArrayList<String> list) {
		ArrayList<String> returnList = new ArrayList<String>(list.size());
		for (int i = list.size() - 1; i >= 0; i--) {
			returnList.add(list.get(i));
		}
		return returnList;
	}
}
